import request from '@/utils/request'

// 查询Dll列表
export function listOrder(query) {
  return request({
    url: '/dll/opt/list',
    method: 'get',
    params: query
  })
}

// 根据工作单ID查询工作单
export function listOrderById() {
  return request({
    url: '/dll/opt/orderById',
    method: 'get',
  })
}

// 查询Dll详细
export function getOrder(id) {
  return request({
    url: '/dll/opt/' + id,
    method: 'get'
  })
}

// 新增Dll
export function addOrder(data) {
  return request({
    url: '/dll/opt',
    method: 'post',
    data: data
  })
}

// 修改Dll
export function updateOrder(data) {
  return request({
    url: '/dll/opt',
    method: 'put',
    data: data
  })
}

// 删除Dll
export function delOrder(id) {
  return request({
    url: '/dll/opt/' + id,
    method: 'delete'
  })
}
